package org.xxx.epms.result.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.xxx.epms.result.models.AqiGrade;


import java.util.List;

public interface AqiGradeService extends IService<AqiGrade> {

    /**
     * 根据AQI等级获取AQI等级信息
     * @param level
     * @return
     */
    AqiGrade getAqiGradeByLevel(Integer level );


    /**
     * 获取所有AQI等级信息
     * @return
     */
    List<AqiGrade> listAqiGrades();

    /**
     * 通过co，so2，pm2.5值获取AQI等级
     * @param coValue
     * @return
     */
    public Integer getAqiGradeByCoValue(Integer coValue);
    public Integer getAqiGradeBySo2Value(Integer so2Value);
    public Integer getAqiGradeByPmValue(Integer pmValue);
}